// new model
var Taikhoan= function(data){
    this.ten = data.ten;
    this.matkhau= data.matkhau;
    return this;
};
//return model Tai khoan
Taikhoan.find= function(ten){
    //demo data
    var ourData= {
        '1':{
            ten: 'admin',
            matkhau: 'admin'
        }
    };
    //sql commingsion
    var taikhoan = new Taikhoan(ourData[1]);
    return taikhoan;
};